package com.gameShare.enums.gameInfo

enum class GameInfoOrderEnum(val code : Int, val field : String) {
    POST_TIME(0, "post_time"),
    UPDATE_TIME(1, "update_time"),
    WATCH_NUMBER(2, "watch_number"),
    DOWNLOAD_NUMBER(3, "download_number"),
    COLLECTION_NUMBER(4, "collection_number");

    companion object {
        fun getByCode(code: Int): GameInfoOrderEnum? {
            return entries.find { it.code == code}
        }
    }
}